<!DOCTYPE html>
<html>
{% load staticfiles %}
<head>
    <title>登录</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-------------jquery库-------------->
  	<script type="text/javascript" src="{% static 'js/jquery-1.8.3.min.js' %}"></script>
	<!-------------Amazeui--------------->
    <script type="text/javascript" src="{% static 'js/amazeui.js' %}"></script>
    <link rel="stylesheet" type="text/css" href="{% static 'css/amazeui.css' %}">
    <!------------核心样式-------------->
    <link rel="stylesheet" type="text/css" href="{% static 'css/user.css' %}">
</head>
<body>

<!-------------------登录------------------->
<div id="log_register">
	
	<div class="lr_box">
		
		<div class="tag">
			<ul>
				<li><a class="cur" href="{% url 'login' %}">登录</a></li>
				<li><a href="{% url 'register' %}">注册</a></li>
				<div class="clear"></div>
			</ul>
		</div>
		<table class="table_list">
            <form method="post" action="{% url 'login' %}">
			<tbody>
				<tr>
					<td><input class="text" name="username" type="text" placeholder="登陆邮箱"></td>
				</tr>
				<tr>
					<td><input class="text" name="password" type="password" placeholder="您的密码"></td>
				</tr>
                <div style="color:red">{% for key,error in register_form.errors.items %}{{ error }}{% endfor %}{{ msg }}</div>
				<tr>
					<td>
						<label class="am-checkbox">
							<input name="is_keep" type="checkbox" id="checkbox_a1" class="chk_1">
							<label for="checkbox_a1"></label> 保持登陆状态
						</label>
						<a class="back" href="#">找回密码</a>
					</td>
				</tr>
				<tr>
					<td><input class="submit" type="submit" value="登录"></td>
				</tr>
			</tbody>
                {% csrf_token %}
            </form>
		</table>

	</div>

</div>

</body>
</html>